import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int i=1;
        while(i<=100){
            if ((i%15!=0)){
                i++;
                continue;
            }else{
                System.out.println(i);
                i++;
            }

        }
    }

    public static void main5(String[] args) {
        Scanner scanner =new Scanner(System.in);

        int num=1;
        int sum=0;
        int num1=scanner.nextInt();
       while(num<=num1){
           int i=1;
           int ret=1;
           while(i<=num){
               ret *=i;
               i++;

           }
           sum+=ret;
           ++num;

       }
        System.out.println(sum);
    }
    public static void main4(String[] args) {
        int sum1=0;
        int sum2=0;
        int sum3=0;
        int i=1;
        while(i<=100){
            sum3+=i;
            i=i+2;
        }
        i=2;
        while(i<=100){
            sum1+=i;
            i+=2;

        }
        System.out.println(sum1);
        System.out.println(sum3);
    }
    public static void main3(String[] args) {
        int i=0;
        int num1=0;
        int num2=0;
        for (i=1;i<=100;i++) {
            if (i%2==0){
                num1+=i;


            }else{
                num2+=i;

            }


        }
        System.out.println("一到100奇数的和"+num2);
        System.out.println("一到一百偶数的和"+num1);
    }
    public static void main2(String[] args) {
        /**
         * switch不能用的数据类型 long double float boolean
         */

        int a=1;
        switch(a){
            case 1:
                System.out.println("1");
                break;
            case 2:
                System.out.println("2");
                break;

        }
    }
    public static void main1(String[] args) {
        Scanner scanner =new Scanner(System.in);

        while(scanner.hasNextInt() ){
            int year =scanner.nextInt();
            if ((year%100==0)&&(year%400==0)||(year%4==0)){
                System.out.println("是闰年");
                break;

            }
            else{
                System.out.println("不是闰年");
            }
        }

    }
}
